const http = uni.$u.http

export const makeAuto = (params = {}) => http.post('/creditcardmachine/plan/make/auto', params); //制定智还计划
export const makeUpdate = (params = {}) => http.post('/creditcardmachine/plan/make/update', params); //更新智还计划
export const planList = (params = {}) => http.post('/creditcardmachine/plan/', params); //账单管理
export const planCancel = (params = {}) => http.post('/creditcardmachine/plan/cancel', params);
export const planInfo = (params = {}) => http.post('/creditcardmachine/plan/' + params.id, params); //
export const planMakeCon = (params = {}) => http.post('/creditcardmachine/plan/make/confirm', params); //确认智还计划

export const planCashierCard = (params = {}) => http.post('/creditcardmachine/plan/cashier/confirm', params); //确认收银计划
export const cashierList = (params = {}) => http.post('/creditcardmachine/plan/cashier/list', params); //收银列表
export const cashierCon = (params = {}) => http.post('/creditcardmachine/plan/cashier', params); //制定收银计划
export const channelCashier = (params = {}) => http.post('/creditcardmachine/channel/cashier', params); //收银通道

export const cashierConsume = (params = {}) => http.post('/creditcardmachine/plan/cashier/consume', params); //收银列表

export const cAuthentication = (params = {}) => http.post('/creditcardmachine/channel/authentication', params); //绑卡
export const rightCard = (params = {}) => http.post('/creditcardmachine/channel/authentication/confirm', params); //确认绑卡

export const creditcardmachineRate = (params = {}) => http.get('/creditcardmachine/channel/rate', {params});